package csel.model.items;

import csel.model.entity.Entity;

public class GatorOne extends UseableItem
{

	public GatorOne()
	{
		super("Gator One", "This is your key to the Gator Nation", -1, "key");
	}

	@Override
	public boolean use(Entity e)
	{
		Item i = e.getTile().getNeighbor(e.getDirection()).getItem();
		if(i instanceof GatorOneLockableDoor)
		{
			((GatorOneLockableDoor)(i)).toggleLocked();
		}
		return true;
	}

}
